package com.xlh.openai.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xlh.openai.dao.ConversationDao;
import com.xlh.openai.entity.ConversationEntity;
import com.xlh.openai.entity.WechatUserEntity;
import com.xlh.openai.service.ConversationService;
import com.xlh.openai.service.WebChatService;
import com.xlh.openai.service.WechatUserService;
import com.xlh.openai.vo.ConversationListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;
import java.util.List;


@Service("conversationService")
public class ConversationServiceImpl extends ServiceImpl<ConversationDao, ConversationEntity> implements ConversationService {

    @Autowired
    private WebChatService webChatService;

    @Override
    public void conversationInsert(String title) {
        ConversationEntity conversationEntity = new ConversationEntity();
        conversationEntity.setTitle(title);
        WechatUserEntity currentUser = webChatService.getCurrentUser();
        conversationEntity.setUserId(currentUser.getId());
    }

    @Override
    public List<ConversationListVO> conversationList() {





        return null;
    }
}